package lad02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int a=0;
        while (true){
        Scanner scanner=new Scanner(System.in);
        System.out.printf("Please input an int:");
        try {   a= scanner.nextInt();}catch (InputMismatchException e){
            System.out.printf("类型不匹配！！");
        }

        System.out.printf("a= "+a);

    }}
}
